export default {
  setConnecting({commit}, flag) {
    commit('SET_CONNECTING', flag)
  },
  setConnected({commit}, flag) {
    commit('SET_CONNECTED', flag)
  },
  addPeer({commit}, payload) {
    commit('SET_PEER', payload)
  },
  setWebcamInProgress({commit}, payload) {
    commit('SET_WEBCAM_IN_PROGRESS', payload)
  },
  addProducer({commit}, payload) {
    commit('SET_ME_PRODUCER', payload)
  },
  addConsumer({commit}, payload) {
    commit('SET_CONSUMER', payload)
  },
  createRoomClient({commit}, payload) {
    commit('SET_ROOM_CLIENT', payload)
  },
  connectedFail() {
  },
  setRoomState() {

  },
  setConsumerPaused() {

  },
  setConsumerResumed() {

  },
  addDataConsumer({commit}, payload) {
    commit('SET_DATA_CONSUMER', payload)
  },
  setProducerScore() {
  },
  removePeer({commit}, payload) {
    commit('REMOVE_PEER', payload)
  },
  setPeerDisplayName() {

  },
  setConsumerCurrentLayers() {

  },
  setConsumerScore() {

  },
  removeDataConsumer() {

  },
  setRoomActiveSpeaker() {

  },
  setMeCanVideo({commit}, payload) {
    commit('SET_ME_CAN_VIDEO', payload)
  },
  setMeCanAudio({commit}, payload) {
    commit('SET_ME_CAN_AUDIO', payload)
  },
  setMePeerId({commit}, payload) {
    commit('SET_ME_PEER_ID', payload)
  },
  setRoomId({commit}, payload) {
    commit('SET_ROOM_ID', payload)
  },
  removeProducer() {},
  setProducerPaused() {},
  setProducerResumed() {},
  setUseType({commit}, payload) {
    commit('SET_USE_TYPE', payload)
  },
  removeConsumer({commit}, payload) {
    commit('REMOVE_CONSUMER', payload)
  },
  setHomeowner({commit}, payload) {
    commit('SET_HOMEROWNER', payload)
  },
  setCanJoinRoom({commit}, payload) {
    commit('SET_JOIN_ROOM', payload)
  },
  setCallType({commit}, payload) {
    commit('SET_CALL_TYPE', payload)
  },
  setPeersId({commit},payload) {
    commit('SET_PEERS_ID', payload)
  }
}
